home *** CD-ROM | disk | FTP | other *** search
/ Robotics & Artificial Int…3 (Professional Edition) / Robotics & Artificial Intelligence Tools 2003 (Professional Edition).iso / neural network tool and application / nsinstall.exe / data1.cab / Demos_Files / Unsupervised_Learning / Learning Vector Quantization.nsm < prev    next >
Encoding:
Text File  |  2002-03-08  |  2.1 KB  |  55 lines

  1. subtitleTextBox. setText ("")
  2. mainTextBox. setText ("")
  3.  
  4. activeBreadboard. deleteObject ( "editTitle" )
  5. activeBreadboard. deleteObject ( "editEngine" )
  6.  
  7. activeBreadboard. replaceWith ( "unsupervisedSynapse" , "StandardFull" )
  8. outputAxon. setRows ( 2 )
  9. unsupervisedSynapse. setWeightMean ( 1.000000 )
  10. unsupervisedSynapse. setWeightVariance ( 5.000000 )
  11.  
  12. activeBreadboard. stampOnAndMove ( "Function" , "unsupervisedSynapse" )
  13. function1. setActiveAccessPoint ( "Forced" )
  14. function1. setDataSource ( "SquareWaveFunction" )
  15. function1. setSamples ( 2 )
  16. function1. setAmplitude ( 0.500000 )
  17. function1. setOffset ( 0.500000 )
  18. function1. setBroadcast ( FALSE )
  19. function1. setActiveChannel ( 1 )
  20. function1. setPhaseShift ( 180.000000 )
  21.  
  22. activeInputProbe. setXMinScale ( -4.00000 )
  23. activeInputProbe. setXMaxScale ( 8.000000 )
  24. activeInputProbe. setYMinScale ( -4.00000 )
  25. activeInputProbe. setYMaxScale ( 8.000000 )
  26.  
  27. activeBreadboard. lockWindowUpdate()
  28.  
  29. controlButton. setName ( "runButton" )
  30.  
  31. CreateLargeButtonMacroPath = macro. pathFromNS ( "Macros\create large button.nsm" )
  32. activeBreadboard. runMacro ( CreateLargeButtonMacroPath )
  33. controlButton. setName ( "controlButton1" )
  34. controlButton1. setText ( "Class Definition 1" )
  35. controlButton1. moveTo ( 630 , 95 )
  36. ControlMacroPath = macro. pathFromMacro ( "classdef1.nsm" )
  37. controlButton1. setMacroPath ( ControlMacroPath )
  38.  
  39. CreateLargeButtonMacroPath = macro. pathFromNS ( "Macros\create large button.nsm" )
  40. activeBreadboard. runMacro ( CreateLargeButtonMacroPath )
  41. controlButton. setName ( "controlButton2" )
  42. controlButton2. setText ( "Class Definition 2" )
  43. controlButton2. moveTo ( 630 , 135 )
  44. ControlMacroPath = macro. pathFromMacro ( "classdef2.nsm" )
  45. controlButton2. setMacroPath ( ControlMacroPath )
  46.  
  47. activeBreadboard. unlockWindowUpdate()
  48.  
  49. activeBreadboard. select ( NULL , FALSE )
  50.  
  51. NextMacroPath = macro. pathFromMacro ( "Summary.nsm" )
  52. nextButton. setMacroPath ( NextMacroPath )
  53. SubtitleIndex = subtitleTextBox. setTextFromFile (TextBoxPath, SubtitleIndex)
  54. MainIndex = mainTextBox. setTextFromFile (TextBoxPath, MainIndex)
  55.